<!--
  描述：离职信息表table页
  @author tanghongjun
  @since 2020-05-14 10:48:18
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <!--规定复选框列置于第1列，居中显示-->
            <th lay-data="{field:'leaveId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>

                            <th lay-data="{field:'leaveId', unresize:true, align:'center'}">主键</th>
                            <th lay-data="{field:'staffId', unresize:true, align:'center'}">员工ID</th>
                            <th lay-data="{field:'status', unresize:true, align:'center'}">离职状态：1.离职，2.在职</th>
                            <th lay-data="{field:'leaveReason', unresize:true, align:'center'}">离职原因：1.家庭原因，2.个人原因，3.发展原因，4.合同到期不续签，5.协议解除，6.无法胜任工作，7.经济性裁员，8.严重违法乱纪，9.其他</th>
                            <th lay-data="{field:'leaveSuccessor', unresize:true, align:'center'}">离职交接人</th>
                            <th lay-data="{field:'lastWorkTime', unresize:true, align:'center'}">最后工作时间</th>
                            <th lay-data="{field:'leaveFileSrc', unresize:true, align:'center'}">离职附件1</th>
                            <th lay-data="{field:'leaveFileName', unresize:true, align:'center'}">离职附件1名称</th>
                            <th lay-data="{field:'leaveFileSize', unresize:true, align:'center'}">离职附件1大小</th>
                            <th lay-data="{field:'leaveFileSrc2', unresize:true, align:'center'}">离职附件2</th>
                            <th lay-data="{field:'leaveFileName2', unresize:true, align:'center'}">离职附件2名称</th>
                            <th lay-data="{field:'leaveFileSize2', unresize:true, align:'center'}">离职附件2大小</th>
                            <th lay-data="{field:'leaveFileSrc3', unresize:true, align:'center'}">离职附件3</th>
                            <th lay-data="{field:'leaveFileName3', unresize:true, align:'center'}">离职附件3名称</th>
                            <th lay-data="{field:'leaveFileSize3', unresize:true, align:'center'}">离职附件3大小</th>
                            <th lay-data="{field:'remark', unresize:true, align:'center'}">备注</th>
                            <th lay-data="{field:'creater', unresize:true, align:'center'}">创建人</th>
                            <th lay-data="{field:'updater', unresize:true, align:'center'}">操作人</th>
                            <th lay-data="{field:'createTime', unresize:true, align:'center'}">创建时间</th>
                            <th lay-data="{field:'updateTime', unresize:true, align:'center'}">操作时间</th>
                        <!--规定操作列置于最后-->
            <th lay-data="{field:'操作', width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
            <!--其他规范
                值较大的数字列居右显示，并使用千分号；值较小的数字列可居中显示，
                金额列统一居右显示，默认精确到小数点后2位，并使用千分号，
                通常情况下，时间或日期列靠后放置(操作列前)，居中显示
                -->
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td ></td>
                            <td th:text="${item.leaveId}">leaveId</td>
                            <td th:text="${item.staffId}">staffId</td>
                            <td th:text="${item.status}">status</td>
                            <td th:text="${item.leaveReason}">leaveReason</td>
                            <td th:text="${item.leaveSuccessor}">leaveSuccessor</td>
                            <td th:text="${item.lastWorkTime}">lastWorkTime</td>
                            <td th:text="${item.leaveFileSrc}">leaveFileSrc</td>
                            <td th:text="${item.leaveFileName}">leaveFileName</td>
                            <td th:text="${item.leaveFileSize}">leaveFileSize</td>
                            <td th:text="${item.leaveFileSrc2}">leaveFileSrc2</td>
                            <td th:text="${item.leaveFileName2}">leaveFileName2</td>
                            <td th:text="${item.leaveFileSize2}">leaveFileSize2</td>
                            <td th:text="${item.leaveFileSrc3}">leaveFileSrc3</td>
                            <td th:text="${item.leaveFileName3}">leaveFileName3</td>
                            <td th:text="${item.leaveFileSize3}">leaveFileSize3</td>
                            <td th:text="${item.remark}">remark</td>
                            <td th:text="${item.creater}">creater</td>
                            <td th:text="${item.updater}">updater</td>
                            <td th:text="${item.createTime}">createTime</td>
                            <td th:text="${item.updateTime}">updateTime</td>
                        <td>
                <div>
                    <a th:if="${#authPermit.checkPermit('/staff/staffleaveoffice/addEditView.action')}" style="color: #00a0e9"
                       th:lay-href="|/staff/staffleaveoffice/addEditView.action?${column.pkAttrname}=${item.${column.pkAttrname}}"
                       lay-text="修改"  text="修改">修改</a>&nbsp;&nbsp;
                </div>
            </td>
        </tr>
    </tbody>
</table>
